package com.bitcola.security.activity.controller;

import com.bitcola.security.activity.biz.BalanceChangeBiz;
import com.bitcola.security.common.context.BaseContextHandler;
import com.bitcola.security.common.msg.AppResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("balanceChange")
public class BalanceChangeController {
    @Autowired
    BalanceChangeBiz balanceChangeBiz;
    @RequestMapping(value = "query")
    public AppResponse query(int page,int size)
    {
        return AppResponse.ok().data(balanceChangeBiz.query(BaseContextHandler.getUserID(),page,size));
    }

}
